package com.lp.biz.order.mapper;

import com.lp.biz.member.model.vo.MemberOrderList;
import com.lp.biz.order.model.dto.OrderInvitation;
import com.lp.biz.order.model.entity.BizOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lp.biz.order.model.query.OrderListQuery;
import com.lp.biz.order.model.vo.OrderDetail;
import com.lp.biz.order.model.vo.OrderList;

import java.util.List;

/**
 * BizOrderMapper 接口
 * @program: backend
 * @author Ke.Song
 * @since 2024-05-26 11:00:59
 */
public interface BizOrderMapper extends BaseMapper<BizOrder> {

    /**
     * 获取订单列表
     * @param query 查询参数
     * @return 查询结果
     */
    List<OrderList> orderList(OrderListQuery query);

    /**
     * 获取用户详情订单记录
     * @param memberId 用户id
     * @return 查询结果
     */
    List<MemberOrderList> getMemberOrders(Integer memberId);

    /**
     * 获取订单详情
     * @param orderId 订单id
     * @return 查询结果
     */
    OrderDetail getOrderDetail(Integer orderId);

    /**
     * 获取超过3天的订单
     * @return 查询结果
     */
    List<OrderInvitation> moreThan3Days();

}
